<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="Ver revisão"></h:outputText>
            <br />
            <h3>#{revisaoController.selected.submissao.titulo}</h3>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="Revisor: "/>
                    <h:outputText value="#{revisaoController.selected.revisor}" title="Revisor"/>
                    <h:outputText value="Critica: "/>
                    <h:inputTextarea disabled="true" cols="50" rows="8" value="#{revisaoController.selected.critica}" title="Critica"/>
                    <h:outputText value="Classificação"/>
                    <h:outputText value="#{revisaoController.selected.classificacao} / 10" title="Classificacao"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{submissaoController.prepareRevisorView(revisaoController.selected.submissao.idSubmissao)}" rendered="#{revisaoController.isDono(revisaoController.selected.revisor)}" value="Ver Submissão"/>
                <br />
                <br />
                <h:commandLink action="Edit" rendered="#{revisaoController.editVerification(revisaoController.selected.revisor, revisaoController.selected.estado)}" value="Fazer Revisão"/>
                <br />
                <h:commandLink action="#{revisaoController.prepareList}" value="Lista de Revisões"/>
                <br />
                <br />
                <h:commandLink value="Lista Eventos" action="/evento/List" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
